package ${mapperPackagePath};

import ${searchPoPackagePath}.${entityName?cap_first}SearchPo;
import ${poPackagePath}.${entityName?cap_first}Po;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ${entityName?cap_first}Mapper {

    void insert(${entityName?cap_first}Po ${entityName?uncap_first}Po);

    void insertBatch(@Param("list") List<${entityName?cap_first}Po> ${entityName?uncap_first}PoList);

    void update(${entityName?cap_first}Po ${entityName?uncap_first}Po);

    List<${entityName?cap_first}Po> list(@Param("po") ${entityName?cap_first}SearchPo searchPo);

    void deleteById(@Param("id") Long id);

    void deleteByIdList(@Param("list") List<Long> id);

    ${entityName?cap_first}Po selectById(Long id);

    List<${entityName?cap_first}Po> selectByIdList(@Param("list") List<Long> list);


}
